package pers.jason.wppm.web.controller;

import lombok.extern.log4j.Log4j;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 
 * @author Jason
 * @Date 2018-10-26 09:56
 *
 */
@Log4j
@ControllerAdvice
public class ControllerExceptionHandler {

	@ResponseBody
	@ExceptionHandler()
	public void handlerUserNotExistException(Exception ex) {
		ex.printStackTrace();
		log.debug("异常信息：" + ex.getMessage());
	}
	
}
